package com.ruoyi.celoan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.celoan.entity.DalianDataReportLogsEntity;
import com.ruoyi.celoan.mapper.EcDalianDataReportLogsMapper;
import com.ruoyi.celoan.service.IEcDalianDataReportLogsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class EcDalianDataReportLogsServiceImpl extends ServiceImpl<EcDalianDataReportLogsMapper, DalianDataReportLogsEntity> implements IEcDalianDataReportLogsService {
    private static final Logger log = LoggerFactory.getLogger(EcDalianDataReportLogsServiceImpl.class);

    public void addLogs(String messageType, String messageInformation) {
        DalianDataReportLogsEntity logsEntity = new DalianDataReportLogsEntity();
        try {
            logsEntity.setMessageType(messageType);
            logsEntity.setMessageInformation(messageInformation);
            ((EcDalianDataReportLogsMapper) this.baseMapper).insert(logsEntity);
        } catch (Exception e) {
            log.info("添加日志错误：" + e.getMessage());
        }
    }
}


/* Location:              D:\tuodayun\workspace\work\celoan-third-data-report-service-2.0.0-SNAPSHOT.jar!\BOOT-INF\classes\com\celoan\service\impl\EcDalianDataReportLogsServiceImpl.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */
